<?php
    $menu = array(
        'Šoljica'          => '/',
        'Proizvodi'        => '/proizvodi',
        'Gotovi proizvodi' => '/karta-pica',
        'Edukacija'        => '/edukacija',
        'Galerija'         => '/galerija',
        'Kontakt'          => '/kontakt'
    );
    
    $params = $this->request->params;
?><ul><? 
    foreach ($menu as $label=>$link):

    $r = Router::parse($link);
    $active = $r['controller'] == $params['controller'] && $r['action'] == $params['action'];
    if (! empty($params['pass'])) {
        foreach ($params['pass'] as $k=>$p) {
            $active = $active && ($p==@$r['pass'][$k]);
        }
    }
?><li><? 
        if ($active): 
    ?><strong><?= $label ?></strong><? 
        else: 
    ?><?= $this->Html->link($label, $link) ?><? 
        endif  
?></li><? 
    endforeach 
?></ul>